﻿<Window x:Class="Stats.Grafy"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Stats"
        Title="Grafy"   Loaded="Window_Loaded" Height="377" Width="982" 
        xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        WindowStyle="ToolWindow" >
  
    <Grid>
        <chartingToolkit:Chart  Name="chartTrzba" Title="Tržba za den" VerticalAlignment="Stretch" Margin="0,40,0,0" UseLayoutRounding="True">
            <chartingToolkit:LineSeries 
                DependentValuePath="Value" 
                IndependentValuePath="Key" 
                ItemsSource="{Binding}"
             
                IsSelectionEnabled="True" 
                UseLayoutRounding="False" 
                AnimationSequence="FirstToLast" 
                TransitionDuration="00:00:00.1000000" 
                SnapsToDevicePixels="True" 
                ClipToBounds="False" 
                AllowDrop="False"
                VerticalContentAlignment="Stretch" />
        </chartingToolkit:Chart>
            
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="282,9,0,0" Name="cboxObdobi" VerticalAlignment="Top" Width="120" />
        <Label Content="Zobrazit" Height="28" HorizontalAlignment="Left" Margin="11,9,0,0" Name="label1" VerticalAlignment="Top" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="71,9,0,0" Name="cboxZobrazit" VerticalAlignment="Top" Width="120" SelectionChanged="cboxZobrazit_SelectionChanged">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                        <TextBlock Text="{Binding text}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <Label Content="Období" Height="28" HorizontalAlignment="Left" Margin="227,10,0,0" Name="lblObdobi" VerticalAlignment="Top" />
    </Grid>
</Window>
